import baseRequest from '../utils/requset'

// 签到 /api/taskCheckIn/dailyCheckInTask post
export function dailyCheckInTaskApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/dailyCheckInTask',
        'get',
        data
    )
}
// 每日签到记录 /api/taskCheckIn/dailySignIn get
export function getDailySignInApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/dailySignIn',
        'get',
        data
    )
}
// 根据日期获取当天签到状态 /api/taskCheckIn/getUserIsCheckIn get
export function getUserIsCheckInApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/getUserIsCheckIn',
        'get',
        data
    )
}


// 领取奖励 /api/taskCheckIn/receiveBlindBox get  签到记录页面里的领取奖励按钮
export function receiveBlindBoxApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/receiveBlindBox',
        'get',
        // JSON.stringify(data)
        data
    )
}

// 根据任务id获取通过该任务获取的未打开的盲盒 /api/taskCompletion/getUnopenedBlindBoxByTaskId get
export function getUnopenedBlindBoxByTaskIdApi (data) {
    return baseRequest.baseRequest(
        'api/taskCompletion/getUnopenedBlindBoxByTaskId',
        'get',
        data
    )
}
// 打开盲盒  操作  页面名字七天签到惊喜盲盒  打开盲盒（或者有多个未开盲盒） /api/taskCheckIn/openBlindBox get
export function openBlindBoxByIdApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/openBlindBox',
        'get',
        data
    )
}
// 打开盲盒的奖品  /api/taskCheckIn/blindBoxContent get
export function blindBoxContentApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/blindBoxContent',
        'get',
        data
    )
}


// 领取盲盒跳转  /api/taskCheckIn/receiveJump get  盲盒领取页面
export function receiveJumpApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/receiveJump',
        'get',
        data
    )
}

// 领取到的盲盒对应的 我之前领到的所有礼物列表  /api/taskCheckIn/myTaskManagementPrice get
export function myTaskManagementPriceApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/myTaskManagementPrice',
        'get',
        data
    )
}

// 领取到的盲盒对应的可能存在的所有礼物列表  /api/taskCheckIn/blindboxAllPrice get
export function blindboxAllPriceApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/blindboxAllPrice',
        'get',
        data
    )
}


// 查看我的礼品详情——积分   /api/taskCheckIn/blindboxintegral get
export function blindboxintegralApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/blindboxintegral',
        'get',
        data
    )
}


// 查看我的礼品详情——优惠券   /api/taskCheckIn/blindboxCoupon get
export function blindboxCouponApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/blindboxCoupon',
        'get',
        data
    )
}


// 查看盲盒参与详情  /api/taskCheckIn/blindboxParticipationDetails get
export function blindboxParticipationDetailsApi (data) {
    return baseRequest.baseRequest(
        'api/taskCheckIn/blindboxParticipationDetails',
        'get',
        data
    )
}

// 完成任务  /api/taskCompletion/completeTask get
export function completeTaskApi (data) {
    return baseRequest.baseRequest(
        'api/taskCompletion/completeTask',
        'get',
        data
    )
}